import { IRoutersData } from './index';

// 全局路由页面
const routersData: IRoutersData = [
  // 示例页面
  // {
  //   path: '/demo/*', // 通过*去匹配多路径页面
  //   title: '页面标题',
  //   // redirect: '/', // 跳转指定页面
  //   // exact: true, // 路由是否绝对匹配
  //   component: () => import('@/views/demo'), // 声明此组件，将不判断是否显示h5/pc组件
  //   // componentPc: () => import('../views/demo'), // pc页面
  //   // componentH5: () => import('../views/demo'), // h5页面
  // },
  {
    path: '/',
    redirect: '/app/testDemo',
  },
  {
    path: '/app/*',
    component: () => import('@/components/Layout/BaseLayout'),
  },
  {
    path: '/demoView',
    component: () => import('@/views/DemoView'),
    exact: false,
  },
  {
    path: '/printReport',
    component: () => import('@/views/ExcelDemo'),
  },
  {
    path: '/preView',
    component: () => import('@/views/PreView'),
  },
];

export default routersData;
